package com.wms;

import com.wms.util.SysConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.lang.Thread;
import java.io.File;

@SpringBootApplication
public class StlApplication {

    public static void main(String[] args) {
        File file = new File(SysConfig.UPLOAD_DIR);
        System.out.println("没有检测到静态资源文件夹，正准备创建文件夹，需要一点时间......");
        if(!file.exists()){

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            file.mkdirs();
            System.out.println("静态文件夹创建成功");
        }
        SpringApplication.run(StlApplication.class,args);
//        org.springframework.boot.SpringApplication.run(StlApplication.class, args);
    }

}
